package com.tansuo365.test1.service.otherservice.impl;

import com.tansuo365.test1.bean.otherbean.RoleMenu;
import com.tansuo365.test1.mapper.othermapper.RoleMenuMapper;
import com.tansuo365.test1.service.otherservice.RoleMenuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class RoleMenuServiceImpl implements RoleMenuService {

    @Resource
    private RoleMenuMapper roleMenuMapper;

    @Override
    public int deleteByRoleId(int roleId) {
        return roleMenuMapper.deleteByRoleId(roleId);
    }

    @Override
    public int saveRoleMenu(RoleMenu roleMenu) {
         return roleMenuMapper.insertSelective(roleMenu);
    }
}
